<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <script type="text/javascript">
            CI_ROOT = "<?php echo site_url() ?>";
        </script>
        <link href="<?php echo base_url(); ?>css/bootstrap.min.css" rel="stylesheet" media="screen"/>
        <link href="<?php echo base_url(); ?>css/jquery.fancybox.css" rel="stylesheet" media="screen"/>
        <link href="<?php echo base_url(); ?>css/style.css" rel="stylesheet" media="screen"/>
        <script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-1.8.3.min.js"></script>
        <script src="<?php echo base_url(); ?>/js/jquery.printPage.js" type="text/javascript"></script>
        <title>Sistem Pembiayaan</title>
    </head>
    <body>
        <?php if($this->session->userdata('type') == 'admin'){ ?>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <a href="<?php echo site_url('admin'); ?>" class="brand">Sistem Pembiayaan</a>
                        <ul class="nav">
                            <li class="dropdown">
                                <a class="dropdown-toggle"
                                   data-toggle="dropdown"
                                   href="#">
                                    <i class="icon-user icon-white"></i>
                                    Users
                                    <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <?php echo anchor('admin/boss','Boss'); ?>
                                        <?php echo anchor('admin/pegawai1','Pegawai1'); ?>
                                        <?php echo anchor('admin/pegawai2','Pegawai2'); ?>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                        <ul class="nav pull-right">
                            <li class="divider-vertical"></li>
                            <li class="dropdown">
                                <a class="dropdown-toggle"
                                   data-toggle="dropdown"
                                   href="#">
                                    <i class="icon-wrench icon-white"></i>
                                    <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <?php echo anchor('admin/setting','Setting','class="fancybox fancybox.iframe input"'); ?>
                                        <?php echo anchor('login/logout','Sign Out'); ?>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                        <ul class="nav">
                            <li><a href="<?php echo site_url(); ?>boss/agree"><i class="icon-ok icon-white"></i>Agree</a></li>
                            <li><a href="<?php echo site_url(); ?>pegawai1/barang"><i class="icon-book icon-white"></i>Data Barang</a></li>
                            <li><a href="<?php echo site_url(); ?>pegawai1/pengiriman"><i class="icon-plane icon-white"></i>Pengiriman Barang</a></li>
                            <li><a href="<?php echo site_url(); ?>pegawai2/jatuhtempo"><i class="icon-calendar icon-white"></i>Jatuh Tempo</a></li>
                        </ul>
                </div>
            </div>
        </div>
        <?php } else if($this->session->userdata('type') == 'boss'){?>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                        <a href="<?php echo site_url('boss'); ?>" class="brand">Sistem Pembiayaan</a>
                        <ul class="nav pull-right">
                            <li class="divider-vertical"></li>
                            <li class="dropdown">
                                <a class="dropdown-toggle"
                                   data-toggle="dropdown"
                                   href="#">
                                    <i class="icon-wrench icon-white"></i>
                                    <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <?php echo anchor('boss/setting','Setting','class="fancybox fancybox.iframe input"'); ?>
                                        <?php echo anchor('login/logout','Sign Out'); ?>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                        <ul class="nav">
                            <li><a href="<?php echo site_url(); ?>boss/agree"><i class="icon-ok icon-white"></i>Agree</a></li>
                        </ul>
                </div>
            </div>
        </div>
        <?php } else if($this->session->userdata('type') == 'pegawai1'){?>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                        <a href="<?php echo site_url(); ?>pegawai1" class="brand">Sistem Pembiayaan</a>
                        <ul class="nav pull-right">
                            <li class="divider-vertical"></li>
                            <li class="dropdown">
                                <a class="dropdown-toggle"
                                   data-toggle="dropdown"
                                   href="#">
                                    <i class="icon-wrench icon-white"></i>
                                    <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <?php echo anchor('pegawai1/setting','Setting','class="fancybox fancybox.iframe input"'); ?>
                                        <?php echo anchor('login/logout','Sign Out'); ?>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                        <ul class="nav">
                            <li><a href="<?php echo site_url(); ?>pegawai1/barang"><i class="icon-book icon-white"></i>Data Barang</a></li>
                            <li><a href="<?php echo site_url(); ?>pegawai1/pengiriman"><i class="icon-plane icon-white"></i>Pengiriman Barang</a></li>
                        </ul>
                </div>
            </div>
        </div>
        <?php } else if($this->session->userdata('type') == 'pegawai2'){?>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                        <a href="<?php echo site_url('pegawai2'); ?>" class="brand">Sistem Pembiayaan</a>
                        <ul class="nav pull-right">
                            <li class="divider-vertical"></li>
                            <li class="dropdown">
                                <a class="dropdown-toggle"
                                   data-toggle="dropdown"
                                   href="#">
                                    <i class="icon-wrench icon-white"></i>
                                    <b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <?php echo anchor('pegawai2/setting','Setting','class="fancybox fancybox.iframe input"'); ?>
                                        <?php echo anchor('login/logout','Sign Out'); ?>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                        <ul class="nav">
                            <li><a href="<?php echo site_url(); ?>pegawai2/jatuhtempo"><i class="icon-calendar icon-white"></i>Jatuh Tempo</a></li>
                        </ul>
                </div>
            </div>
        </div>
        <?php } ?>


